package com.martin.fastframe.ui.ceiling

import com.martin.lib_base.base.BaseListViewModel
import com.martin.lib_base.bean.CeilingBean
import kotlin.random.Random

class CeilingViewModel : BaseListViewModel() {

    val ceilingModel = CeilingModel()

    override fun getData() {
        val list = arrayListOf<Any>()
        val titleCount = Random.nextInt(5, 10)
        for (i in 0 until titleCount) {
            val title = "吸顶效果$i"
            list.add(CeilingBean(title))
            val childCount = Random.nextInt(1, 10)
            for (i1 in 0 until childCount) {
                list.add("$title 子项$i1")
            }
        }
        pageModel.handleDataList(list)
    }

}